﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">网站设置</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">新增导航</a></span>
            <div class="z-f-r"><span class="user-t">当前语言为：</span><span class="user-info"><?php echo $GLOBALS['langdata'][$GLOBALS['langtype']] ;?></span><!-- <a href="#">退出</a> --></div>
        </div>
        <div class="top-menu">
        	<ul>
            	<li><a href="index.php?app=nav&act=index"  target="mainframe">导航列表</a></li>
				<li class="current"><a href="#" >新增导航</a></li>			
				
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">


<form action="?app=nav&act=addpost" method="post">

<table  class="data" >
<tbody>
            <tr >
				<td width="20%"><span class="bold">上级分类：</span></td>
				<td>                                
                    <select name="data[parent_id]" >
				    <option value="0">顶级分类</option>
                         {$catgystr}
					</select>       
                                
               </td>
			</tr>                                      
                                   
                                   
                                   <tr >

	                                      <td width="30%">链接文字:</td>
	                                      <td><input type="text" name="data[title]" value="" class="text" maxlength="30" /></td>
                                   </tr>
                                   <tr >
	                                      <td>链接提示文字(选填):</td>
	                                      <td><input type="text" name="data[config][alt]" value="" class="text" maxlength="50" /></td>
                                   </tr>
                                   <tr >
	                                      <td>链接地址(如果是绝对地址，请以 http:// 或 https:// 开头)【<font color="#FF0000">如果链接是站内链接，请点击后面的下拉列表框来生成。这样可以防止<a href="http://www.phpscup.com/bbs/view.php?tid=147" target="_blank">错误发生</a>。</font>】:</td>

	                                      <td>
                                          <input type="text" name="data[url]" size="50"  maxlength="80"  value="" class="text" id="keyword_m" />
    	                                 <select name="select4" onChange="MM_keyword2(this,'keyword_m')" > 
										 <option  value="">请选择...</option>
										 								
							<?php							 
						    if ((SYSTEM_URL_REWRITE!=2)||SYSTEM_URL_HTML_REWRITE)
							{ 
							
							?>
                                         <option  value="{SITE_URL}/?-app-phpscup.html">|--主页</option> 
                                         <option  value="{SITE_URL}/?-app-prot-act-index.html">|--产品主页</option>
                                         <!--{foreach($categorydata_prot as $_key => $_value )}-->  
		                                 <!--{if ($_value.cat_name)}--> 
                                         <option  value="{SITE_URL}/?-app-prot-act-index-cat-{$_value.cat_id}.html" style="color:red;">|--|--{$_value.str_pad}{$_value.cat_name}</option>
                                         <!--{/if}--> 
		                                 <!--{/foreach}-->    
                                         <option  value="{SITE_URL}/?-app-new-act-index.html">|--新闻主页</option>
                                         <!--{foreach($categorydata_new as $_key => $_value )}-->  
		                                 <!--{if ($_value.cat_name)}--> 
                                         <option  value="{SITE_URL}/?-app-new-act-index-cat-{$_value.cat_id}.html" style="color:red;">|--|--{$_value.str_pad}{$_value.cat_name}</option>
                                         <!--{/if}--> 
		                                 <!--{/foreach}-->                                       
										   
                                         <option  value="{SITE_URL}/?-app-job-act-index.html">|--招聘主页</option>
                                         <!--{foreach($categorydata_job as $_key => $_value )}-->  
		                                 <!--{if ($_value.cat_name)}--> 
                                         <option  value="{SITE_URL}/?-app-job-act-index-cat-{$_value.cat_id}.html" style="color:red;">|--|--{$_value.str_pad}{$_value.cat_name}</option>
                                         <!--{/if}--> 
		                                 <!--{/foreach}-->  
                                         <option  value="{SITE_URL}/?-app-login-act-index.html">|--登入页</option> 
                                         <option  value="{SITE_URL}/?-app-login-act-reg.html">|--注册页</option> 
                                         <option  value="{SITE_URL}/?-app-order-act-index.html">|--网上订单</option> 
                                         <option  value="{SITE_URL}/?-app-leaveword-act-index.html">|--在线留言</option>                                      
                                         <optgroup label='|--单独页面'></optgroup>
                                         <!--{foreach($lw_data as $_key => $_value )}-->
                                         <option  value="{SITE_URL}/{$_value.filepath}" style="color:red;">|--|--{$_value.name}</option>                                           
                                          <!--{/foreach}--> 								
							<?php 
							} else
							{
							?>
							
                                         <option  value="{SITE_URL}/index.php?app=phpscup">|--主页</option> 
                                         <option  value="{SITE_URL}/index.php?app=prot&act=index">|--产品主页</option>
                                         <!--{foreach($categorydata_prot as $_key => $_value )}-->  
		                                 <!--{if ($_value.cat_name)}--> 
                                         <option  value="{SITE_URL}/index.php?app=prot&act=index&cat={$_value.cat_id}" style="color:red;">|--|--{$_value.str_pad}{$_value.cat_name}</option>
                                         <!--{/if}--> 
		                                 <!--{/foreach}-->    
                                         <option  value="{SITE_URL}/index.php?app=new&act=index">|--新闻主页</option>
                                         <!--{foreach($categorydata_new as $_key => $_value )}-->  
		                                 <!--{if ($_value.cat_name)}--> 
                                         <option  value="{SITE_URL}/index.php?app=new&act=index&cat={$_value.cat_id}" style="color:red;">|--|--{$_value.str_pad}{$_value.cat_name}</option>
                                         <!--{/if}--> 
		                                 <!--{/foreach}-->                                       
										   
                                         <option  value="{SITE_URL}/index.php?app=job&act=index">|--招聘主页</option>
                                         <!--{foreach($categorydata_job as $_key => $_value )}-->  
		                                 <!--{if ($_value.cat_name)}--> 
                                         <option  value="{SITE_URL}/index.php?app=job&act=index&cat={$_value.cat_id}" style="color:red;">|--|--{$_value.str_pad}{$_value.cat_name}</option>
                                         <!--{/if}--> 
		                                 <!--{/foreach}-->  
                                         <option  value="{SITE_URL}/index.php?app=login&act=index">|--登入页</option> 
                                         <option  value="{SITE_URL}/index.php?app=login&act=reg">|--注册页</option> 
                                         <option  value="{SITE_URL}/index.php?app=order&act=index">|--网上订单</option> 
                                         <option  value="{SITE_URL}/index.php?app=leaveword&act=index">|--在线留言</option>                                      
                                         <optgroup label='|--单独页面'></optgroup>
                                         <!--{foreach($lw_data as $_key => $_value )}-->
                                         <option  value="{SITE_URL}/index.php{$_value.filepath}" style="color:red;">|--|--{$_value.name}</option>                                           
                                          <!--{/foreach}--> 							
							
							<?php } ?>

										  
										  
										  
	                                     </select>	                                      
                                          
  <SCRIPT LANGUAGE="JavaScript">
<!--

function get_obj(obj){
   return document.getElementById(obj);
}

function MM_keyword2(selObj,str){ //v3.0
  va=selObj.options[selObj.selectedIndex].value
  if (va!='')
  {

		get_obj(str).value=va;

  } 
}

//-->
</script>                                         
                                          </td>
                                  </tr>
                                  <tr >
	                                      <td>链接打开目标(默认为当前浏览窗口):</td>
	                                      <td>
	                                      <select name="data[config][target]">
		                                       <option selected value="_self">_self</option>
		                                       <option value="_blank">_blank</option>
		                                       <option value="_parent">_parent</option>
		                                       <option value="_top">_top</option>
	                                     </select>
	                                     </td>
                                 </tr>
                                 <tr >
	                                     <td>导航位置(系统的顶部或底部):</td>
	                                     <td><input type="radio" name="data[position]" value="top" id="top"  checked /><label for="top">顶部</label>&nbsp;<input type="radio" name="data[position]" value="bottom" id="bottom" /><label for="bottom">底部</label></td>

                                </tr>
                                <tr >
	                                     <td>&nbsp;</td>
	                                     <td><input type="submit" class="btn" value=" 提 交 " /></td>
                                </tr>
            </tbody>
        </table>
                                </form>	
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span >如果想把新的新闻分类，新的产品分类，新的单独页添加到导航栏中，请先添加新闻分类，产品分类，单独页面，然后再在链接地址的下拉列表框中选择就可以了。</span> </div>
    </div>
</div>
<!--{inc(footer.view.html)}-->